﻿using System.Windows.Forms;

namespace NDK.Frm
{
    public partial class Frm_Alarm : Form
    {
        private Frm_Alarm()
        {
            InitializeComponent();
        }
        /// <summary>
        /// 窗体对象实例，单例模式,保证整个工程只有一个实例
        /// </summary>
        private static Frm_Alarm _instance;
        private static readonly object singletonLock = new object();
        public static Frm_Alarm Instance
        {
            get
            {
                if (_instance == null)
                {
                    lock (singletonLock)
                    {
                        if (_instance == null)
                        {
                            _instance = new Frm_Alarm();
                        }
                    }
                }
                return _instance;
            }
        }
    }
}
